home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 September
/
PCWorld_2006-09_cd.bin
/
v cisle
/
hexer
/
mpth_17.exe
/
{app}
/
scripts
/
inc
/
gui.mps
< prev
Wrap
Text File
|
2005-12-07
|
4KB
|
94 lines
= gui functions are stored in plugin gui_funcs.ths
= gui constants
=
= common
= text align
DEF GUI_TEXTALIGN_LEFT 0:= align text left
DEF GUI_TEXTALIGN_RIGHT 1:= align text right
DEF GUI_TEXTALIGN_CENTER 2:= horizontally centered text
= gui element align
DEF GUI_ALIGN_NONE 0:= no gui element aligning
DEF GUI_ALIGN_TOP 1:= at the top of the parent element
DEF GUI_ALIGN_BOTTOM 2:= at the bottom of the parent element
DEF GUI_ALIGN_LEFT 3:= at the left of the parent element
DEF GUI_ALIGN_RIGHT 4:= at the right of the parent element
DEF GUI_ALIGN_ALL 5:= all over the parent element
= shift state flags
DEF GUI_SHIFT_SHIFT 1:= Shift key is down
DEF GUI_SHIFT_MENU 2:= Menu (Alt) key is down
DEF GUI_SHIFT_CTRL 4:= Ctrl key is down
DEF GUI_SHIFT_MLEFT 8:= Left mouse button is down
DEF GUI_SHIFT_MRIGHT 16:= Right mouse button is down
DEF GUI_SHIFT_MMIDDLE 32:= Middle mouse button is down
DEF GUI_SHIFT_MDBL 64:= Doublecklick
= FORM properties
= FORM border styles
DEF GUI_BORDER_NONE 0:= no form border
DEF GUI_BORDER_SINGLE 1:= single border, not sizeable
DEF GUI_BORDER_SIZEABLE 2:= thick border, sizeable
DEF GUI_BORDER_DIALOG 3:= dialog border, not sizeable
DEF GUI_BORDER_TOOLWIN 4:= small title bar, not sizeable
DEF GUI_BORDER_SIZETOOLWIN 5:= small title bar, sizeable
= FORM positions
DEF GUI_FORMPOS_DESIGNED 0:= position as designed
DEF GUI_FORMPOS_DEFAULT 1:= position/size set by windows
DEF GUI_FORMPOS_DEFAULTPOS 2:= position set by windows
DEF GUI_FORMPOS_DEFAULTSIZE 3:= size set by windows
DEF GUI_FORMPOS_SCREENCENTER 4:= center on screen
DEF GUI_FORMPOS_DESKTOPCENTER 5:= center on desktop
DEF GUI_FORMPOS_PARENTCENTER 7:= center on parent window
= FORM states
DEF GUI_FORMSTATE_NORMAL 0:= normal showing
DEF GUI_FORMSTATE_MINIMIZED 1:= minimized
DEF GUI_FORMSTATE_MAXIMIZED 2:= maximized
= FORM icons (OR them for multiple icons)
DEF GUI_FORMICON_SYSMENU 1:= show system menu
DEF GUI_FORMICON_MINIMIZE 2:= show minimize button
DEF GUI_FORMICON_MAXIMIZE 4:= show maximize button
= COMBOBOX properties
= COMBOBOX styles
DEF GUI_COMBOSTYLE_DROPDOWN 0:= drop down list + edit
DEF GUI_COMBOSTYLE_SIMPLE 1:= edit + fixed list
DEF GUI_COMBOSTYLE_DROPDOWNLIST 2:= drop down list only
= STATIC properties
= STATIC text layout
DEF GUI_STATICLAYOUT_TOP 0:= text is at the top of the element
DEF GUI_STATICLAYOUT_CENTER 1:= text is vertically centered
DEF GUI_STATICLAYOUT_BOTTOM 2:= text is at the bottom of the element
= MEMO properties
= MEMO scrollbars
DEF GUI_MEMOSCROLLBAR_NONE 0:= no scrollbars
DEF GUI_MEMOSCROLLBAR_HORZ 1:= horizontal scrollbar
DEF GUI_MEMOSCROLLBAR_VERT 2:= vertical scrollbar
DEF GUI_MEMOSCROLLBAR_BOTH 3:= h and v scrollbars
= CHECKBOX properties
= CHECKBOX state (GUI_CHECKBOXSTATE_GRAYED possible only if AllowGrayed is true)
DEF GUI_CHECKBOXSTATE_UNCHECKED 0:= not checked
DEF GUI_CHECKBOXSTATE_CHECKED 1:= checked
DEF GUI_CHECKBOXSTATE_GRAYED 2:= grayed
= FONT properties
= FONT styles (OR them for multiple icons)
DEF GUI_FONTSTYLE_BOLD 1:= bold font
DEF GUI_FONTSTYLE_ITALIC 2:= italic font
DEF GUI_FONTSTYLE_UNDERLINE 4:= underline
DEF GUI_FONTSTYLE_STRIKE 8:= strike through